﻿using Architecture.CrossCutting.LoggingEntities;
using Architecture.CrossCutting.RepositoryPattern.Logging;
using Architecture.CrossCutting.Web.IOC;
using Microsoft.Practices.Unity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;

namespace Architecture.Presentation.WebApiServices2
{
    public static class UnityConfig
    {
        public static void Register(HttpConfiguration config)
        {
            var container = new UnityContainer();
            //container.RegisterType<IReadOnlyRepository<EFLog>, LoggingRepository<EFLog>>(new HierarchicalLifetimeManager());
            config.DependencyResolver = new UnityResolver(container);

        }
    }
}
